require.config({
    baseUrl: '',
    paths: {
        "app": "js/app", //对应模板的app.js
        "route-config": "js/route-config",//对应模板的app.js
        "indexController": "js/controllers/indexController",
        "projCommon": "js/projCommon",

        //----------后期移除
        "lib-app": "js/lib/app",
        "bootstrapJs": "js/lib/bootstrap.min",
        //----------后期移除 End

        "templates": "js/templates",
        "jquery": "js/lib/jquery-2.2.3/jquery.min",
        "jqueryForm": "js/lib/jquery-2.2.3/jquery.form",
        "jcookies": "js/lib/jquery-2.2.3/jquery.cookies",
        "base64": "js/lib/jquery-2.2.3/jquery.base64",
        // "angular": "js/lib/angular/angular-1.5.8.min",
        "angular": "js/lib/angular/angular",
        "angularResource": "js/lib/angular/angular-resource.min",
        "uiRoute": "js/lib/angular/angularUI/angular-ui-router",
        "angularSanitize": "js/lib/angular/angular-sanitize.min",
        "angularCookies": "js/lib/angular/angular-cookies.min",
        "angularLocale": "js/lib/angular/i18n/angular-locale_zh-cn",
        "bootstrapUI": "js/lib/angular/angularUI/ng-bootstrap/ui-bootstrap-tpls-0.12.0.min",
        "datetimepicker": "js/lib/datetimepicker/bootstrap-datetimepicker.min",
        "datetimepickerCn": "js/lib/datetimepicker/bootstrap-datetimepicker.zh-CN",
        "jqueryUI": "js/lib/jqueryui/jquery-ui-1.10.3.custom.min",
        "jqueryUITouchPunch": "js/lib/jquery-ui-touch-punch/jquery.ui.touch-punch.min",
        "uislider": "js/lib/uislider/slider",
        "moment": "js/lib/moment/moment",
        "websocket": "js/lib/websocket",
        "md5": "js/lib/md5/md5",
        "jqueryFileuploadAngular": "js/lib/upload/custom/jquery.fileupload-angular-custom",
        "jquery.fileupload-validate": "js/lib/upload/js/jquery.fileupload-validate",
        "jquery.fileupload-process": "js/lib/upload/js/jquery.fileupload-process",
        "jquery.fileupload": "js/lib/upload/custom/jquery.fileupload-custom",
        "dragscrollable": "js/lib/dragscrollable/dragscrollable.min",
        "caret": "js/lib/caret/jquery.caret",
        "jqueryQrcode": "js/lib/jquery-qrcode/jquery.qrcode",
        "qrcode": "js/lib/qrcode/qrcode",
        "lazyLoad": "js/lib/lazyLoad/jquery.lazyload.min",

        //加密算法
        // "des": "js/lib/crypto/tripledes",
        // "crypto": "js/lib/crypto/core",
        // "ecb": "js/lib/crypto/mode-ecb",

        "app1": "js/lib/app",
        "slimscroll": "js/lib/slimscroll/jquery.slimscroll.min",//slimscroll 修改过源代码，请勿随意替换 --liuxioatang 2017/03/02
        "sparkline": "js/lib/charts/sparkline/jquery.sparkline.min",
        "app1plugin": "js/lib/app.plugin",
        "ueditorconf": "js/lib/ueditor/ueditor.config",
        "ueditorall": "js/lib/ueditor/ueditor.all",

        //树形插件
        "prettify": "js/lib/treestructure/prettify.1.0.1",
        "treeControl": "js/lib/treestructure/angular-tree-control",
        //echarts插件
        "echarts": "js/lib/charts/echarts/echarts.min",
        "walden": "js/lib/charts/echarts/walden",
        "socketJs": "js/lib/sockjs-0.3.min",
        //ztree
        "zTree": "js/lib/ztree/jquery.ztree.all.min",
        //baidu map
        'BMap': ['http://api.map.baidu.com/api?v=2.0&ak=PoAn0cu4eblpuGXkvVWPps15AWBuSocH'],
        //异步加载百度地图支持
        'async': 'js/lib/require/async'
    },

    shim: {
        "angular": {
            "deps": ["jquery"],
            "exports": "angular"
        },
        "jqueryForm": {
            "deps": ["jquery"],
            "exports": "jqueryForm"
        },
        "angularLocale": ["angular"],
        "uiRoute": ["angular"],
        "angularResource": ["angular"],
        "angularSanitize": ["angular"],
        "angularCookies": ["angular"],
        "bootstrapUI": ["angular"],
        "datetimepicker": ["jquery"],
        "datetimepickerCn": ["datetimepicker"],
        "jqueryUI": ["jquery"],
        "jqueryUITouchPunch": ["jqueryUI"],
        "uislider": ["angular", "jqueryUI", "jqueryUITouchPunch"],
        "moment": {"exports": "moment"},
        'websocket': {'exports': 'YGWebSocket'},
        'dragscrollable': ['jquery'],
        'caret': ['jquery'],
        //'jqueryQrcode':['jquery'],
        'qrcode': ['jquery'],
        'lazyLoad': ['jquery'],
        // 'ecb': ['crypto', 'des'],
        'calander': ['bootstrapJs'],

        'app': ['angular', 'lib-app', 'projCommon'],
        'lib-app': ['bootstrapJs'],

        "slimscroll": ['jquery'],
        "sparkline": ['jquery'],
        'app1plugin': ['jquery', 'app1'],

        "jqueryQrcode": {
            "deps": ["jquery"],
            "exports": "jqueryQrcode"
        },

        "treeControl": {
            "deps": ["jquery", "angular", "bootstrapJs", "bootstrapUI", "prettify"],
            "exports": "treeControl"
        },

        "walden": {
            "deps": ["echarts"],
            "exports": "walden"
        },
        "bootstrapJs": {
            "deps": ["jquery"],
            "exports": "bootstrapJs"
        },

        "angularueditor": {
            "deps": ["ueditorconf", "ueditorall", "angular"],
            "exports": "angularueditor"
        },
        "zTree": {
            "deps": ["jquery"],
            "exports": "zTree"
        },
        'BMap': {
            deps: ['jquery'],
            exports: 'BMap'
        }
    },
    priority: [
        "jquery",
        "angular"
    ]
});

require(["app"], function (app) {
    $(document).ready(function () {
        angular.bootstrap(document, [app.name]);
    });
});